package com.yanfan.maintain.domain;

import com.yanfan.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 易损件表(VulnerableItems)实体类
 *
 * @author makejava
 * @since 2023-03-14 17:36:16
 */
public class VulnerableItems extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -18580142453358756L;
    /**
     * 唯一标识主键id
     */
    private Long id;
    /**
     * 易损件编号
     */
    private String partNumber;
    /**
     * 易损件名称
     */
    private String partName;
    /**
     * 易损件型号
     */
    private String model;
    /**
     * 易损件规格
     */
    private String specification;
    /**
     * 易损件品牌
     */
    private String brand;
    /**
     * 所属工艺的唯一标识
     */
    private Long processId;
    /**
     * 所属工艺的名称
     */
    private String processName;
    /**
     * 所属设备的唯一标识
     */
    private Long equipmentId;
    /**
     * 所属设备的名称
     */
    private String equipmentName;
    /**
     * 备件库存数量
     */
    private Long stockQuantity;
    /**
     * 所属系统的唯一标识
     */
    private Long systemId;
    /**
     * 所属系统的名称
     */
    private String systemName;
    /**
     * 最后一次入库时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastInTime;
    /**
     * 最后一次出库时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastOutTime;
    /**
     * 距离维保时间(以天为单位)
     */
    private Integer maintainDistance;
    /**
     * 上次保养时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastMaintainTime;
    /**
     * 上次保养人Id
     */
    private Long lastMaintainPersonId;
    /**
     * 上次保养人名字
     */
    private String lastMaintainPersonName;
    /**
     * 保养周期
     */
    private String maintainPeriod;
    /**
     * 数据创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    /**
     * 分页
     */


    private Long userId;

    /**
     * 当前页
     */
    private Integer pageNum;
    /**
     * 页条数
     */
    private Integer pageSize;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPartNumber() {
        return partNumber;
    }

    public void setPartNumber(String partNumber) {
        this.partNumber = partNumber;
    }

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Long getProcessId() {
        return processId;
    }

    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public Long getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Long equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public Long getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(Long stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

    public Long getSystemId() {
        return systemId;
    }

    public void setSystemId(Long systemId) {
        this.systemId = systemId;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public Date getLastInTime() {
        return lastInTime;
    }

    public void setLastInTime(Date lastInTime) {
        this.lastInTime = lastInTime;
    }

    public Date getLastOutTime() {
        return lastOutTime;
    }

    public void setLastOutTime(Date lastOutTime) {
        this.lastOutTime = lastOutTime;
    }

    public Integer getMaintainDistance() {
        return maintainDistance;
    }

    public void setMaintainDistance(Integer maintainDistance) {
        this.maintainDistance = maintainDistance;
    }

    public Date getLastMaintainTime() {
        return lastMaintainTime;
    }

    public void setLastMaintainTime(Date lastMaintainTime) {
        this.lastMaintainTime = lastMaintainTime;
    }

    public Long getLastMaintainPersonId() {
        return lastMaintainPersonId;
    }

    public void setLastMaintainPersonId(Long lastMaintainPersonId) {
        this.lastMaintainPersonId = lastMaintainPersonId;
    }

    public String getLastMaintainPersonName() {
        return lastMaintainPersonName;
    }

    public void setLastMaintainPersonName(String lastMaintainPersonName) {
        this.lastMaintainPersonName = lastMaintainPersonName;
    }

    public String getMaintainPeriod() {
        return maintainPeriod;
    }

    public void setMaintainPeriod(String maintainPeriod) {
        this.maintainPeriod = maintainPeriod;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }


    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}

